package com.prs.crm.domain.student;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;



/**
 * @author 廖苹宏
 * 学生信息表
 * */
@Entity
@Table(name="s_student")
public class Student extends BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;	
	/**学生姓名*/
	private String stuName;
//	private String gradeName;
	/**学生所属年级*/
	@ManyToOne	
	private Grades grade;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public Grades getGrade() {
		return grade;
	}
	public void setGrade(Grades grade) {
		this.grade = grade;
	}
//	public String getGradeName() {
//		return gradeName;
//	}
//	public void setGradeName(String gradeName) {
//		this.gradeName = gradeName;
//	}
	
	
}
